<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html >
<html>
<head>
	<meta charset="UTF-8">
	<base href="./">
	<link rel="stylesheet" href="libs/css/edit.css">
</head>
<body>
	
	<form action="Client"  method="post">
	<input type="hidden" name=checkin_id value="${checkid_id }">
		<c:if test="${info==null}">
			<input type="hidden" name="cmd" value="insert">
		</c:if>
		
		<c:if test="${info!=null}">
			<input type="hidden" name="cmd" value="update">
			<input type="hidden" name="id" value="${info.id}">
		</c:if>
		
		<div class="inputview">		
		
		<span class="inputspan"> 
			<label class="inputtext">姓名:</label> 
			<input class="inputinput" name="name" value="${info.name}"/>
		</span>
		
		<span class="inputspan"> 
		<label class="inputtext">性别:</label> 
			<select name="sex" class="inputselect">
			<c:forEach items="${sexs}" var="a" varStatus="v">
				<c:if test="${v.index==info.sex}">
					<option  value="${v.index}" selected="selected" >${a}</option>
				</c:if>
				<c:if test="${v.index!=info.sex}">
					<option  value="${v.index}">${a}</option>
				</c:if>
			</c:forEach>
		</select>
		</span>
		
		<span class="inputspan"> 
			<label class="inputtext">电话:</label> 
			<input class="inputinput" name="tel" value="${info.tel}"/>
		</span>
		
		<span class="inputspan"> 
			<label class="inputtext">身份证号:</label> 
			<input class="inputinput" name="code" value="${info.code}"/>
		</span>
		
		</div>
		
		<div class="inputbtpanel">
			<button class="seachbt1" type="submit" >保存</button>
		</div>
	</form>
	
</body>
</html>